package 时间;

import java.time.Duration;
import java.time.LocalTime;


public class 间隔 {
    public static void main(String[] args) {
        LocalTime now = LocalTime.now();
        System.out.println(now);
        LocalTime old = LocalTime.of(16,0,0);

        Duration duration = Duration.between(old,now);
        System.out.println(duration.toHours());

        //


    }
}
